package cn.edu.ahu.aircondition.modbus.service;

import java.util.Timer;
import java.util.TimerTask;

/**
 *
 * Created by ahu on 2017/6/11.
 */
public class TimerConduct {
    public static void main(String args[]) {
        while (true){
            try {
                TimerApi timerApi =new TimerApi();
                Thread.sleep(3000);
                timerApi.queryData2DB();
                timerApi.setDevice();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
